package com.autumn.platform.core.boot;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = CoreProperties.PREFIX)
public class CoreProperties {

    /**
     * 自动配置属性前缀
     */
    public static final String AUTO_CONFIG_PROPERTIES_PREFIX = "autumn";

    /**
     * Core自动配置属性前缀
     */
    public static final String PREFIX = AUTO_CONFIG_PROPERTIES_PREFIX + ".core";

    /**
     * 缓存名称前缀
     */
    private String cacheNamePrefix;

    /**
     * 服务器密钥
     */
    private String serverSecret;

    public String getCacheNamePrefix() {
        return cacheNamePrefix;
    }

    public void setCacheNamePrefix(String cacheNamePrefix) {
        this.cacheNamePrefix = cacheNamePrefix;
    }

    public String getServerSecret() {
        return serverSecret;
    }

    public void setServerSecret(String serverSecret) {
        this.serverSecret = serverSecret;
    }
}
